package com.cp.cpface.controller;

import com.cp.cpface.model.UserfaceInfo;
import com.cp.cpface.service.UserFaceInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * @author ChengPeng
 * @create 2020-04-10 14:40
 */
@RestController
public class UserFaceInfoController {

    @Autowired
    UserFaceInfoService userFaceInfoService;

    @GetMapping("/userInfo")
    public List<UserfaceInfo> getUserInfo()
    {
        List<UserfaceInfo> list = new ArrayList<UserfaceInfo>();
        list = userFaceInfoService.findUserFaceInfoList();
        return list;
    }
}
